import { register } from '@antv/x6-vue-shape'; // 如果使用 vue 渲染功能，需要安装此包
import GraphBase from './components/GraphBase.vue';

//图形注册
export const GraphRegister = (item) => {
  register({
    ...item,
  });
};

//左侧的图形
export const graphList = [
  {
    shape: 'Figure1',
    width: 66,
    height: 66,
    component: GraphBase,
    data: {
      circle: true,
      isEdit: true,
    },
  },
  {
    shape: 'Figure2',
    width: 66,
    height: 66,
    component: GraphBase,
    data: {
      circle: true,
    },
  },
  {
    shape: 'Figure3',
    width: 66,
    height: 36,
    component: GraphBase,
    data: {
      label: '过程',
    },
  },
  {
    shape: 'Figure4',
    width: 66,
    height: 36,
    component: GraphBase,
    data: {
      radius: true,
    },
  },
  {
    shape: 'Figure5',
    width: 66,
    height: 36,
    component: GraphBase,
    data: {
      isEdit: true,
    },
  },
];
